<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
%>



<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>main</title>
<link rel="stylesheet" rev="stylesheet" href="../css/style.css"
	type="text/css" media="all" />

<script src="../js/jquery.min.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
	
	function check() {
		document.getElementById("aa").style.display = "";
	}

	
	/* function doblur(){
		if($('#psd').val() == ''){
			$('#msg1').html('密码不能为空');
			$('#msg1').css('color','red');
		}else{
			$('#msg1').html('');
		}
	}
	
	function doblur1(){
		if($('#psd').val() != $('#psd1').val()){
			$('#msg2').html('密码不一致');
			$('#msg2').css('color','red');
		}else{
			$('#msg2').html('密码一致');
			$('#msg2').css('color','green');
		}
	} */
	
	function link() {
	 	if(document.getElementById("shopName").value == '' || document.getElementById("cityName").value == '' || document.getElementById("shopAddress").value ==''|| document.getElementById("telephone").value==''||
	 			document.getElementById("latitude").value ==''||document.getElementById("longitude").value ==''||document.getElementById("items_pic").value ==''){
			alert('内容有空，请填写完整')
	 		$("#fom").submit(function(e){
			    e.preventDefault();
			});
		}
	}
	
	
</script>
<style type="text/css">
<!--
.atten {
	font-size: 12px;
	font-weight: normal;
	color: #F00;
}
-->
</style>
</head>

<body class="ContentBody">
	<form action="<%=path %>/cityShopcontroller/editcityaddress2" method="post" name="fom"
		id="fom" ENCTYPE="multipart/form-data">
		<div class="MainDiv">
			<table width="99%" border="0" cellpadding="0" cellspacing="0"
				class="CContent">

				<tr>
					<th class="tablestyle_title">修改店铺页面</th>
				</tr>
				<tr>
					<td class="CPanel">

						<table border="0" cellpadding="0" cellspacing="0"
							style="width: 100%">
							<tr>
								<td> <input
									type="button" name="Submit2" value="返回" class="button"
									onclick="window.history.go(-1);" /></td>
							</tr>

							<TR>
								<TD width="100%">
									<fieldset style="height: 100%;">
										<legend>店铺修改</legend>
											
											
											<input value="${cityAddress.id}" type="text" name="id" id="" style="display:none">
										
										
										<table border="0" cellpadding="2" cellspacing="1"
											style="width: 100%">
												<tr>
													
													<td nowrap align="right" width="13%">所在城市:</td>
													<td width="43%">
														<input name="cityName"  id="cityName" class="text"
														style="width: 143px"  
														value="${cityAddress.cityName}" /><!-- <span id="msg1"></span>  --></td>
													<!-- <td align="right" width="17%">请再次输入原密码:</td>
													<td width="27%"><input name="englishName" id="Input22"
														class="password" style="width: 154px" value="" /></td> -->
												</tr>
												
												<tr>
													
													<td nowrap align="right" width="13%">店铺名称:</td>
													<td width="13%">
														<input name="shopName"  id="shopName" class="text"
														style="width: 143px"  
														value="${cityAddress.shopName }" /><!-- <span id="msg1"></span>  --></td>
													<!-- <td align="right" width="17%">请再次输入原密码:</td>
													<td width="27%"><input name="englishName" id="Input22"
														class="password" style="width: 154px" value="" /></td> -->
												</tr>
												
												<tr>
													
													<td nowrap align="right" width="13%">店铺地址:</td>
													<td width="13%">
														<input name="shopAddress"  id="shopAddress" class="text"
														style="width: 250px"  size="40"
														value="${cityAddress.shopAddress}" /></td>
													
												</tr>
												
												
												
												<tr>
													
													<td nowrap align="right" width="13%">店铺电话:</td>
													<td width="13%">
														<input name="telephone"  id="telephone" class="text"
														style="width: 250px"  size="40"
														value="${cityAddress.telephone }" /></td>
													
												</tr>
												
												<tr>
													<td nowrap align="right">纬度:</td>
													<td><input name="latitude" id="latitude" class="text" 
														style="width: 100px"  value="${cityAddress.latitude}" />
													</td>	
													
													
													
												</tr>
												<tr>
												
												<td nowrap align="right">经度:</td>
													<td><input name="longitude" id="longitude" class="text" 
														style="width: 100px"  value="${cityAddress.longitude}" />
													</td>
												
												</tr>
												
												<tr>
													
													<td nowrap align="right" width="13%">上班时间:</td>
													<td width="13%">
														<select style="width=143px "name="startTime">  
                                                            <option value ="8:00" >8:00</option>  
                                                            <option value ="8:30">8:30</option>  
                                                            <option value="9:00" selected="selected">9:00</option>  
                                                             <option value="9:30">9:30</option>
                                                             <option value="10:00">10:00</option>   
                                                        </select>  
														
														</td>
													
												</tr>
												
												<tr>
													
													<td nowrap align="right" width="13%">下班时间:</td>
													<td width="43%">
														<select style="width=143px "name="endTime">  
                                                            <option value ="17:00" >17:00</option>  
                                                            <option value ="18:00">18:00</option>  
                                                            <option value="19:00" selected="selected">19:00</option>  
                                                             <option value="20:00">20:00</option>
                                                             <option value="21:00">21:00</option> 
                                                              <option value="22:00">22:00</option>   
                                                        </select>  
														
														</td>
													
												</tr>
												
												
												<tr>
													
													<td nowrap align="right" width="13%">请选择图片(每张图片大小不超过80KB,宽高比:1.5):</td>
													<td width="43%">
														<input name="items_pic"  id="items_pic" type="file"
														style="width: 250px" 
														value="" /></td>
													
												</tr>
												<tr></tr>
										</table>
										<br />
									</fieldset>
								</TD>
							</TR>

						</TABLE>


					</td>
				</tr>






				<TR>
					<TD colspan="2" align="center" height="50px"><input
						type="submit" name="Submit" value="提交" class="button" onclick="link()"/> <input
						type="button" name="Submit2" value="返回" class="button"
						onclick="window.history.go(-1);" /></TD>
				</TR>
			</TABLE>


			




			

		</div>
	</form>
</body>
</html>

